package dialer.ws.base.entity.vtelcom;

import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Master entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "master", schema = "vtelcom_call_center")
public class Master implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4639921167091132492L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	private Integer id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_status", nullable = false)
	private Status status;

	@Column(name = "chanel", nullable = false)
	private Integer chanel;

	@Column(name = "endDate")
	private Date endDate;

	@Column(name = "endTime")
	private Date endTime;

	@Column(name = "name")
	private String name;

	@Column(name = "queue")
	private String queue;

	@Column(name = "retrives")
	private Integer retrives;

	@Column(name = "startDate")
	private Date startDate;

	@Column(name = "startTime")
	private Date startTime;

	@Column(name = "trunk")
	private String trunk;

	@Column(name = "context")
	private String context;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "master")
	private List<Script> listScript;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "master")
	private List<Base> listBase;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "master")
	private List<Formulary> listFormulary;

	// Constructors

	/** default constructor */
	public Master() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getRetrives() {
		return retrives;
	}

	public void setRetrives(Integer retrives) {
		this.retrives = retrives;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public String getTrunk() {
		return trunk;
	}

	public void setTrunk(String trunk) {
		this.trunk = trunk;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public List<Script> getListScript() {
		return listScript;
	}

	public void setListScript(List<Script> listScript) {
		this.listScript = listScript;
	}

	public List<Base> getListBase() {
		return listBase;
	}

	public void setListBase(List<Base> listBase) {
		this.listBase = listBase;
	}

	public List<Formulary> getListFormulary() {
		return listFormulary;
	}

	public void setListFormulary(List<Formulary> listFormulary) {
		this.listFormulary = listFormulary;
	}

	public Integer getChanel() {
		return chanel;
	}

	public void setChanel(Integer chanel) {
		this.chanel = chanel;
	}

	public String getQueue() {
		return queue;
	}

	public void setQueue(String queue) {
		this.queue = queue;
	}

}